package com.hp.spring3apptest.spring.ui.components;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotEmpty;
import org.springframework.stereotype.Component;


@Component
public class StudentLogin {

    private String userName;
    private String userPassword;

    @NotEmpty
    @Length(max = 10)
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @NotEmpty
    @Length(max = 10)
    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

}
